package com.ruoyi.industryfrontend.mapper;

import com.ruoyi.industryfrontend.domain.ProjectWorkshop;
import com.ruoyi.industryfrontend.domain.SpaceIndustry;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 厂房Mapper接口
 *
 * @author MagicCube
 * @date 2023-05-08
 */
@Mapper
public interface ProjectWorkshopMapper
{
    /**
     * 查询厂房
     *
     * @param id 厂房主键
     * @return 厂房
     */
    public ProjectWorkshop selectProjectWorkshopById(Long id);

    /**
     * 查询厂房列表
     *
     * @param projectWorkshop 厂房
     * @return 厂房集合
     */
    public List<ProjectWorkshop> selectProjectWorkshopList(ProjectWorkshop projectWorkshop);
    public List<ProjectWorkshop> selectProjectWorkshopListz(ProjectWorkshop projectWorkshop);

    /**
     * 新增厂房
     *
     * @param projectWorkshop 厂房
     * @return 结果
     */
    public int insertProjectWorkshop(ProjectWorkshop projectWorkshop);

    /**
     * 修改厂房
     *
     * @param projectWorkshop 厂房
     * @return 结果
     */
    public int updateProjectWorkshop(ProjectWorkshop projectWorkshop);

    /**
     * 删除厂房
     *
     * @param id 厂房主键
     * @return 结果
     */
    public int deleteProjectWorkshopById(Long id);

    /**
     * 批量删除厂房
     *
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteProjectWorkshopByIds(Long[] ids);

    List<SpaceIndustry> selectProjectBuildingBySpaceIds(List<String> workshop);

    ProjectWorkshop selectProjectWorkshopByNumber(@Param("spaceId") String spaceId);

    int deleteProjectWorkshopBySerialNumber(String spaceId);
}
